import { createRoot } from 'react-dom/client'
import { Provider } from 'react-redux'
import { store, persistedStore } from './store'
import App from './App.tsx'
import { PersistGate } from 'redux-persist/es/integration/react'
import './styles/reset.scss'
import './assets/iconfont/iconfont.scss'
import './styles/common.scss'
import { I18nextProvider } from 'react-i18next'
import i18n from './language/index.ts'

createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
    <PersistGate persistor={persistedStore}>
      <I18nextProvider i18n={i18n}>
        <App />
      </I18nextProvider>
    </PersistGate>
  </Provider>,
)
